/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.behavioral.command;

/**
 *
 * @author jmg
 */
public class Main {
    public static void main(String[] args) {
        Server server = new SeverISMTP();
        Command c = new  EncenderServer(server);
        Invoker invoker = new Invoker(c);
        invoker.run();
        
        c = new ResetServer(server);
        invoker = new Invoker(c);
        invoker.run();
        
        
        c = new ApagarServer(server);
        invoker = new Invoker(c);
        invoker.run();
        
        
        
        
    }
}
